import request from '@/utils/request'
export default {

    // 根据课程id和用户id创建订单
    insertOrderByCourderIdAndUserId(courseId) {
        return request({
            url: `/orderservice/order/insertOrderByCourderIdAndUserId/${courseId}`,
            method: 'put'
        })
    },

    // 根据订单id查询订单数据
    queryOrderByOrderNo(orderNo) {
        return request({
            url: `/orderservice/order/queryOrderByOrderNo/${orderNo}`,
            method: 'get'
        })
    }
}